coreVersion: v1
kind: Item
includeTemplates:
  - default
  - intermediate
metadata:
  name: assignment
  displayName: Assignment
  pluralName: assignments
  displayPluralName: Assignments
  dataSource: main
  tableName: project_assignments
  description: Assignments
  core: false
  performDdl: true
spec:
  attributes:
    source:
      type: relation
      relType: manyToOne
      target: task
      inversedBy: assignments
      columnName: source_id
      displayName: Source Task
      description: Source Task
      required: true
      colWidth: 160
    target:
      type: relation
      relType: manyToOne
      target: resource
      inversedBy: tasks
      columnName: target_id
      displayName: Target Resource
      description: Target Resource
      required: true
      colWidth: 160
    role:
      type: relation
      relType: manyToOne
      target: projectRole
      columnName: role_id
      displayName: Role
      description: Role
      required: true
      colWidth: 160
    effort:
      type: long
      columnName: effort
      displayName: Effort
      description: Effort
      required: true
      minRange: 0
